-
Notifications
You must be signed in to change notification settings - Fork 18
add base theme.json to use alignment sizes and spacings ONLY #467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Reviewer's GuideIntroduce a base theme.json to centralize block alignment widths, color palette, and spacing; refactor SCSS and PHP to rely on native WordPress theme settings and CSS custom properties, removing manual calculations and scattered variable definitions. Class diagram for Editor service refactorclassDiagram
class Editor {
+boot(container)
+admin_editor_script()
+register_custom_block_styles()
-assets_tools
-gutenberg_blocks_allowed
}
%% after_theme_setup method removed
%% Theme support registration moved to theme.json
Editor : -after_theme_setup()
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
La PR a pour but, de laisser Gutenberg gérer les alignements wide / default / full et de pouvoir gérer les espacements des blocs en BO
Ajout d'un theme.json de base reprenant ce qu'on avait avant :
Avantages
column(cf Omnes)_palette.scsscar l'ajout dutheme.jsongère déjà les class utilitaires automatiquementInformations
Étant donné qu'on est pas dans un contexte full FSE pour les gabarits, nous devons ajouter les class
is-layout-constrained has-global-paddingsur l'élémentblocks-containerafin que WordPress puisse appliquer sa logique d'alignement.Testé et mis en place sur Yvelines.fr